package org.example.fifter;

import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebFilter;
import jakarta.servlet.http.HttpFilter;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;

import java.io.IOException;

/**
 * @Auther:Liu
 * @Testname:firstfifter
 * @Date:2025/7/31 9:49
 */
@Slf4j
@WebFilter("/*")
public class firstfifter extends HttpFilter {
    @Override
    protected void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {
        log.info("进入了firstfifter过滤器");
        chain.doFilter(request, response);
        log.info("又经过了firstfifter过滤器");
    }
}
